using System.Collections.Generic;
using UnityEngine;

namespace HEFramework
{
    /// <summary>
    /// ATKEffect data,ATKEffect.xlsx
    /// </summary>
    public class DRATKEffect:IData
    {
        
        /// <summary>
        /// ID  different
        /// </summary>
        public int ID { get; protected set; }
        /// <summary>
        /// AB路径  
        /// </summary>
        public string ABPath { get; protected set; }
        /// <summary>
        /// AB昵称  
        /// </summary>
        public string ABName { get; protected set; }
        /// <summary>
        /// 类型  
        /// </summary>
        public int Type { get; protected set; }
        /// <summary>
        /// 大小  
        /// </summary>
        public int Size { get; protected set; }
        /// <summary>
        /// 速度（厘米/s）  
        /// </summary>
        public int Speed { get; protected set; }
        /// <summary>
        /// 销毁时间（毫秒）  
        /// </summary>
        public int DieOutTime { get; protected set; }

        
        public void ParseDataRow(string input)
        {
            string[] text = input.Split('	');
            int index = 0;
        
            ID = int.Parse(text[index++]);
            ABPath = text[index++];
            ABName = text[index++];
            Type = int.Parse(text[index++]);
            Size = int.Parse(text[index++]);
            Speed = int.Parse(text[index++]);
            DieOutTime = int.Parse(text[index++]);

        }
        
        private void AvoidJIT()
        {
            new Dictionary<int, DRATKEffect>();
        }
    }
}